<?php
declare (strict_types = 1);

namespace app\middleware;

class BaseMiddleware{
    public function return_err($code=1001,$msg='缺少参数token'){
        return json([
            'success' => false,
            'code' => $code,
            'msg' => $msg,
            'data' => []
        ]);
    }
}
